package com.aconcagua.mvc.control.support {
  import com.aconcagua.factory.BeanFactory;
  import com.aconcagua.mvc.control.CommandFactory;

  public class CommandFactory implements com.aconcagua.mvc.control.CommandFactory {
    private var _beanFactory: BeanFactory;

    public function CommandFactory(beanFactory: BeanFactory) {
      _beanFactory = beanFactory;
    }

    public function createCommand(commandName:String):* {
      return _beanFactory.getBean(commandName);
    }
  }
}